<template>
  <div v-if="status">
    <!-- <Main /> -->
    <SellerMain :orderData="orderData" />
    <HomeGoods
      :ishot="true"
      message="热门商品"
      supplement="经得起时间的考验，大众喜欢的，总有一款是你的菜"
    />
    <HomeGoods
      :ishot="false"
      message="最新商品"
      supplement="我们的平台是行内顶尖的，你想了解的，都能找到"
    />
    <Card />
    <Share />
    <Bottom />
  </div>
</template>
<script>
import Main from "@/views/components/nologin/Main";
import HomeGoods from "@/views/components/nologin/HomeGoods";
import Card from "@/views/components/nologin/Card";
import Share from "@/views/components/nologin/Share";
import Bottom from "@/components/Bottom";
import SellerMain from "@/views/components/seller/SellerMain";
import {getSupplyMain} from "@/api/orderApi"
export default {
  components: {
    Main,
    HomeGoods,
    Card,
    Share,
    Bottom,
    SellerMain,
  },
  data() {
    return {
      status: false,
      orderData : null
    };
  },
  created() {
    let loading = this.$loading({
          lock: true,
          text: "加载中",
          spinner: "el-icon-loading",
          background: "rgba(0, 0, 0, 0.7)",
        });
    getSupplyMain().then((res) => {
      if (res.code == 0) {
        this.orderData = res.data;
        this.status = true;
        loading.close()
      }
    });
  },
  methods: {
  },
};
</script>
<style lang="scss" scoped>
// .main {
//     height: 600px;
// }
</style>